//
//  LeveyTabBar.h
//  LeveyTabBarController
//
//  Created by Levey Zhu on 12/15/10.
//  Copyright 2010 VanillaTech. All rights reserved.
//

#import <UIKit/UIKit.h>
@class UIBadgeView;
@protocol LeveyTabBarDelegate;

@interface LeveyTabBar : UIView
{
	UIImageView *_backgroundView;
	id<LeveyTabBarDelegate> _delegate;
	NSMutableArray *_buttons;
}
@property (nonatomic, retain) UIImageView *backgroundView;
@property (nonatomic, assign) id<LeveyTabBarDelegate> delegate;
@property (nonatomic, retain) NSMutableArray *buttons;
//添加未读消息的数目气泡
@property (nonatomic, retain) NSString       *badgeValue;
@property (nonatomic, retain) UIBadgeView    *badgeView;
@property (nonatomic, retain) UIImageView    *noticeView;

- (id)initWithFrame:(CGRect)frame buttonImages:(NSArray *)imageArray;
- (void)selectTabAtIndex:(NSInteger)index;
- (void)removeTabAtIndex:(NSInteger)index;
- (void)insertTabWithImageDic:(NSDictionary *)dict atIndex:(NSUInteger)index;
- (void)setBackgroundImage:(UIImage *)img;
- (void)reSetButtonImageArray:(NSArray *)imageArray;
-(void)setThemeFrame:(CGRect)frame;
- (void)setBadgeValue:(NSString *)badgeValue withButtonIndex:(NSInteger)_index;
- (void)setTabBarNoticeView:(BOOL)_value withButtonIndex:(NSInteger)_index;

@end
@protocol LeveyTabBarDelegate<NSObject>
@optional
- (void)tabBar:(LeveyTabBar *)tabBar didSelectIndex:(NSInteger)index;

//添加未读气泡

@end
